import request from "@/utils/request"
import qs from "qs"

function GetPfb(pfb) {
	return request.post(
		// https://ys.endata.cn/enlib-api/api/home/getrank_mainland.do
		'/enlib-api/api/home/getrank_mainland.do',
		qs.stringify(pfb), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
				}
	}
	)
}

function GetPfbt(pfbt) {
	return request.post(
		// https://ys.endata.cn/enlib-api/api/home/getrank_mainland.do
		'/enlib-api/api/home/getrank_singleday.do',
		qs.stringify(pfbt), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
				}
	}
	)
}
function GetPfbl(pfbl) {
	return request.post(
		// https://ys.endata.cn/enlib-api/api/home/getrank_mainland.do
		'/enlib-api/api/home/getrank_singlemonth.do',
		qs.stringify(pfbl), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
				}
	}
	)
}
function GetPfbs(pfbs) {
	return request.post(
		// https://ys.endata.cn/enlib-api/api/home/getrank_mainland.do
		'/enlib-api/api/home/getrank_showcount.do',
		qs.stringify(pfbs), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
				}
	}
	)
}
function GetPfbf(pfbf) {
	return request.post(
		// https://ys.endata.cn/enlib-api/api/home/getrank_mainland.do
		'/enlib-api/api/home/getrank_showcountpercent.do',
		qs.stringify(pfbf), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
				}
	}
	)
}
function GetPfbz(pfbz) {
	return request.post(
		// https://ys.endata.cn/enlib-api/api/home/getrank_mainland.do
		'/enlib-api/api/home/getrank_fastesthundredmillion.do',
		qs.stringify(pfbz), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
				}
	}
	)
}
function GetPfba(pfba) {
	return request.post(
		// https://ys.endata.cn/enlib-api/api/home/getrank_mainland.do
		'/enlib-api/api/home/getrank_weekmorechampion.do',
		qs.stringify(pfba), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
				}
	}
	)
}
function GetPfbd(pfbd) {
	return request.post(
		// https://ys.endata.cn/enlib-api/api/home/getrank_mainland.do
		'/enlib-api/api/home/getrank_moviecount.do',
		qs.stringify(pfbd), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
				}
	}
	)
}
function GetPfbc(pfbc) {
	return request.post(
		// https://ys.endata.cn/enlib-api/api/home/getrank_mainland.do
		'/enlib-api/api/home/getrank_festival.do',
		qs.stringify(pfbc), {
			headers: {
				"Content-Type": "application/x-www-form-urlencoded"
				}
	}
	)
}
export {
	GetPfb,GetPfbt,GetPfbl,GetPfbs,GetPfbf,GetPfbz,GetPfba,GetPfbd,GetPfbc
}
